{% extends 'RpmFrontBundle::layout.html.twig' %}

{% block title %}Rpm TRACKLIST{% endblock %}

{% block content %}

<ul class="breadcrumb">
	<li><a href="{{ path('rpm_front_homepage') }}">Home</a> <span class="divider">/</span></li>
	<li class="active"><a href="{{ path('rpm_front_list') }}"> Every Editions</a></li>
</ul>
<hr>

<div class="row">
	<ul class="thumbnails">
		{% if last_page > 1 %}
				<li><a class="thumbnail" href="{{ path('rpm_front_list', { 'page': 1 }) }}"><span>First</span></a></li>
				<li><a class="thumbnail" href="{{ path('rpm_front_list', { 'page': previous_page }) }}"><span>Prev.</span></a></li>
					{% for page in 1..last_page %}
						{% if page == current_page %}
							<li class="thumbnail"><h5 class="no-margin">{{ page }}</h5><li>
						{% else %}
							<li><a class="thumbnail" href="{{ path('rpm_front_list', { 'page': page }) }}"><h5 class="no-margin">{{ page }}</h5></a><li>
						{% endif %}
					{% endfor %}
				<li><a class="thumbnail" href="{{ path('rpm_front_list', { 'page': next_page }) }}"><span>Next</span></a></li>
				<li><a class="thumbnail" href="{{ path('rpm_front_list', { 'page': last_page }) }}"><span>Last</span></a></li>
		{% endif %}
	</ul>
</div>

<div class="row">
	<div class="span7">
		<h2>Every Editions</h2>
		<br/>
		{% for key, entity in entities %}
			<div class="span2 img-polaroid"><h3>Edition #{{ entity.edition }}</h3><a href="{{ path('rpm_front_detail', { 'id': entity.id }) }}" class="btn">View &raquo;</a></div>
		{% endfor %}
    </div>

			
	<div class="span2">
		ESPACE PUB
	</div>

</div>

<div class="separator"></div>
<hr />

<div class="row">
	<div class="span9"> 
		<strong>{{ total_articles }}</strong> RPM classes
		{% if last_page > 1 %}
			- page <strong>{{ current_page }}/{{ last_page }}</strong> 
		{% endif %} 
	</div>
</div>
	
{% endblock %}